package view.dialogs;

import javax.swing.JPanel;

import view.listeners.CancelListener;
import view.listeners.DeleteListener;
import view.views.dialogButtonViews.DeleteButtonPanel;

/**
 * @author Alexander Müller
 * 
 */
public class DeleteDialog extends MessageDialog {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	public DeleteDialog(String title, String info) {
		super(title, info);

	}

	@Override
	protected JPanel addButtons() {

		DeleteButtonPanel buttonPanel = new DeleteButtonPanel();
		buttonPanel.getCancelButton().addActionListener(
				new CancelListener(this));
		buttonPanel.getOKButton().addActionListener(new DeleteListener(this));
		return buttonPanel;
	}


}
